package com.example.model;

import lombok.Data;
import java.util.List;

@Data
public class PageResult<T> {
    private int total;           // 所有记录数
    private List<T> records;     // 当前页数据
    private PageRequest pageRequest; // 分页请求信息

    public PageResult(Integer total, PageRequest pageRequest, List<T> records) {
        this.total = total;
        this.pageRequest = pageRequest;
        this.records = records;
    }
}